export class WateringLevel {
  constructor (data) {
    this.echartData = {
      title: {
        text: '实时水位趋势',
        x: 'center',
        top: 20
      },
      grid: {
        left: 70
      },
      tooltip: {
        trigger: 'axis'
      },
      xAxis: {
        type: 'category',
        boundaryGap: false,
        data: data.x
      },
      yAxis: {
        type: 'value',
        axisLabel: {
          formatter: '{value} m'
        }
      },
      series: [{
        name: '内江',
        type: 'line',
        data: data.inner
      }, {
        name: '外江',
        type: 'line',
        data: data.outer
      }]
    }
  }
}
